<div class='m_header'>
	<div class='m_page '>
	<?php echo CHtml::link("<img src='". MyConstans::getHostResourcepath()."/logo.png'/>" , 'site/index');?>	
	<?php require_once 'userinfo.php';?>
	</div>
	
<div class='m_page '>
	<div class='m-menu'>
	<!-- left -->
		<div class="top-left-info">
			<ul>
				<li > <?php echo CHtml::link("TRANG CHỦ",array("site/index"));?></li>
				<!-- danh sách sản phẩm -->
				<li> <?php echo CHtml::link("CHECK IMEI",array("other/checkimei"));?>
				<li> <?php echo CHtml::link("DỊCH VỤ",array("nhomdichvu/dichvu"));?>
				</li>
			
				<?php if(!UserUtils::isAdmin()):?>
					<?php if(!Yii::app()->user->isGuest){ ?>
					<li > <?php echo CHtml::link("LỊCH SỬ",array('/dichvu/history'));?></li>
					<li class='dropdown-menu-sub'> <?php echo CHtml::link("NẠP CREDIT");?>
						<ul>
							<li><?php echo CHtml::link("Nạp thẻ cào",array('/credit/napthecao'));?></li>
							<li><?php echo CHtml::link("Chuyển khoản",array('/credit/chuyenkhoannganhang'));?></li>
						</ul>
					</li>
					
					<?php }?>
					<li > <?php echo CHtml::link("MUA CODE",array('/dichvu/muadichvu2'));?></li>
				<?php endif;?>
			</ul>
		</div>
	<!-- right -->
		<div class="top-right-info">
		<?php if(Yii::app()->user->isGuest){
		?>	
			<ul>
				<li > <?php echo CHtml::link("Đăng nhâp",array("site/login"));?></li>
				<li ><span> / </span></li>
				<li > <?php echo CHtml::link("Đăng ký",array("user/register"));?></li>
			</ul>
		<?php 
		}else{
		?>
		
			<ul>
		<?php 	if(UserUtils::isAdmin()){ ?>
			<li class='dropdown-menu-sub'> <?php echo CHtml::link("ADMIN");?>
					<ul>
						<li > <?php echo CHtml::link("Quản lý User",array("user/admin"));?></li>
						<li > <?php echo CHtml::link("Nhóm dịch vụ",array("nhomdichvu/index"));?></li>
						<li > <?php echo CHtml::link("Dịch vụ",array("dichvu/index"));?></li>
						<li > <?php echo CHtml::link("Credit",array("credit/admin"));?></li>						
						<li > <?php echo CHtml::link("Quản lý giá User",array("dichvu/gia"));?></li>
						<li > <?php echo CHtml::link("News",array("news/management"));?></li>
						<li > <?php echo CHtml::link("Phục hồi dữ liệu",array("site/phuchoi"));?></li>
					</ul>
				</li>
				
				<li class='dropdown-menu-sub'> <?php echo CHtml::link("QUẢN LÝ");?>
					<ul>
						<li > <?php echo CHtml::link("Order",array("dichvu/orderadmin", 'type'=>'order'));?></li>
						<li > <?php echo CHtml::link("Pedding1",array("dichvu/orderadmin", 'type'=>'pendding1'));?></li>
						<li > <?php echo CHtml::link("Pedding2",array("dichvu/orderadmin", 'type'=>'pendding2'));?></li>
						<li > <?php echo CHtml::link("Done",array("dichvu/orderadmin", 'type'=>'done'));?></li>
						<li > <?php echo CHtml::link("Refund",array("dichvu/orderadmin", 'type'=>'refund'));?></li>
					</ul>
				</li>
				<?php }?>
				<li  class='dropdown-menu-sub'>
				<?php echo CHtml::link( "CÀI ĐẶT",array("user/profile"));?>
					<ul>
						<li > <?php echo CHtml::link("Profile",array("user/profile"));?></li>
						<li > <?php echo CHtml::link("Đổi mật khẩu",array("user/changepass"));?></li>
					</ul>
				</li>
				<li ><?php echo CHtml::link( "Đăng xuất",array("site/logout"));?></li>
			</ul>
		<?php 
		}?>
		</div>
	</div>
</div>
</div>
